<template>
  <div class="common-layout">
    <el-container>
      <!-- 头部 -->
      <el-header style="padding: 0"> <top-bar></top-bar></el-header>

      <el-container>
        <!-- 侧边栏 -->
        <el-aside id="BSAside" width="200px"> <side-bar></side-bar></el-aside>
        <el-container>
          <!-- 内容 -->
          <el-main class="content">
            <router-view></router-view>
          </el-main>

          <!-- 页脚版本号 -->
          <el-footer>
            Copyright © 2021-2021 就爱科技 版权所有. All rights
            reserved.</el-footer
          >
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import TopBar from './TopBar/TopBar.vue'
import SideBar from './SideBar/SideBar.vue'

export default {
    components:{
        TopBar,
        SideBar
    }

};
</script>

<style >
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

#BSAside {
  background-color: #545c64;
  
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  min-height: calc(700px - 50px);
  /* padding: 0px; */
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
body {
  margin: 0;
  height: 100%;
}

.content{
  height: 100vh;
}
</style>